package com.cpecc.manager.wuzi;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cpecc.dao.wuzi.ShenQingJLDao;
import com.cpecc.model.system.User;
import com.cpecc.model.wuzi.ShenQing;
import com.cpecc.model.wuzi.ShenQingJL;
@Service
public class ShenQingJLManager {

	@Autowired
	private ShenQingJLDao shenQingJLDao;
	
	public void save(ShenQingJL shenQingJL){
		shenQingJLDao.save(shenQingJL);
	}
	
	public List<ShenQingJL> getAllJL(String shenQingId){
		return shenQingJLDao.getAllJL(shenQingId);
	}
	
	public List<ShenQing> getMySPJL(User user){
		return shenQingJLDao.getMySPJL(user);
	}
	
	public List<User> listBuMenSP(String shenQingId){
		return shenQingJLDao.listUser(shenQingId, 102);
	}

	public List<User> listUser(String shenQingId, int huanJieId){
		return shenQingJLDao.listUser(shenQingId, huanJieId);
	}
}
